package com.yushixin.order.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 订单实体类
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "db_order", schema = "schema_order")
public class Order implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 主键自增ID
     */
    @Id
    @Column(name = "id")
    private Long id;
    
    /**
     * 订单名称
     */
    @Column(name = "name")
    private String name;
    
    /**
     * 订单状态
     */
    @Column(name = "status")
    private Integer status;
    
    /**
     * 下单人手机
     */
    @Column(name = "account_mobile")
    private String accountMobile;
}
